<template>
  <div class="layout-all">
    
    <div class="layout-content">
    <el-tabs v-model="activeName" >
      <el-tab-pane label="角色介绍" name="first">
         <img src="../../image/role.png" />
      </el-tab-pane>
      <el-tab-pane label="会员来源" name="second">
         <img src="../../image/user.png" />
      </el-tab-pane>
      <el-tab-pane label="快捷登陆" name="third">
        <img src="../../image/login.png" />
      </el-tab-pane>
      <el-tab-pane label="商家入驻" name="fourth">
        <img src="../../image/storejoin.png" />
      </el-tab-pane>
      <el-tab-pane label="购物流程" name="fifth">
        <img src="../../image/shopping.png" />
      </el-tab-pane>
      <el-tab-pane label="拼团流程" name="sixth">
        <img src="../../image/pintuan.png" />
      </el-tab-pane>
      <el-tab-pane label="订单售后" name="seventh">
        <img src="../../image/service.png" />
      </el-tab-pane>
      <el-tab-pane label="用户提现" name="eighth">
        <img src="../../image/withdrawals.png" />
      </el-tab-pane>
      <el-tab-pane label="商家结算" name="ninth">
        <img src="../../image/settlement.png" />
      </el-tab-pane>
      <el-tab-pane label="分销设置" name="tenth">
        <img src="../../image/distribution.png" />
      </el-tab-pane>
    </el-tabs>
  
    </div>
   
  </div>
</template>

<script>
import control from '../../components/control/control'
export default {
  name:'operation_index',
  components: { control },
  data() {
    return {
      activeName:"first",
      config: [
        { type: 'text', placeholder: '请输入社区名', field: 'title', val: '' }
      ],
      value: '',
      searchWhere: {
        title: ''
      },
      tableData: [],
      total: 0,
      current_page: 1,
      per_page: 14
    }
  },
  mounted() {
    this.onSearch()
  },
  methods: {
    // 查询
    handleSizeChange(val) {
      this.onSearch()
    },
    handleCurrentChange(val) {
      this.current_page = val
      this.onSearch()
    },
    onSearch() {
      const form = {}
      form.page = this.current_page
      form.map = this.searchWhere
      this.get('/admin/Team/index', form, 'POST').then(e => {
        this.tableData = e.list.data
        this.per_page = e.list.per_page
        this.total = e.list.total
        this.current_page = e.list.current_page
      })
    },
    // 添加
    onAdd() {},
    // 编辑
    onEdit(id) {
      console.log(id)
    },
    // 修改状态
    change_status(id, field, val) {
      this.update(id, val, field, 'Team').then(e => {
        e ? this.onSearch() : ''
      })
    },
    // 删除
    onDel(id) {
      this.$msg_confirm.then(e => {
        if (e) {
          this.get('/admin/Team/del?id=' + id, this.form, 'POST').then(e => {
            this.onSearch()
          })
        }
      })
    }
  }
}
</script>

<style>
.layout-all {
  margin-top: 20px;
  margin-left: 10px;
}
.layout-content {
  margin-top: 20px;
}
</style>>
